# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-zope-schema
_pkgname=zope.schema
pkgver=7.0.1
pkgrel=1
pkgdesc="zope.interface extension for defining data schemas"
options="!check" # Tests require 'zope.testing', 'zope.testruner' and 'zope.i18nmessageid'
url="https://github.com/zopefoundation/zope.schema"
arch="noarch"
license="ZPL-2.1"
depends="py3-setuptools py3-zope-interface py3-zope-event"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/zope/schema/tests
}

sha512sums="
a8da9ac2e7239d15ed6cef83b4f500bca989c9ef2b7f1cd06ce532c260a8b8488b6fa42a6b2cfaeee505db87d3235f81815dc7eb80401c9e482141f8bf717e62  zope.schema-7.0.1.tar.gz
"
